<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/view/modules/sys/include/taglib.jsp"%>
<%@ include file="/WEB-INF/view/modules/sys/include/head.jsp"%>
<div class="main-container">
    <div class="padding-md">


        <div class="smart-widget">
            <div class="smart-widget-header">
                链接信息
                <span class="smart-widget-option">
								<span class="refresh-icon-animated">
									<i class="fa fa-circle-o-notch fa-spin"></i>
								</span>
	                            <a href="#" class="widget-toggle-hidden-option">
	                                <i class="fa fa-cog"></i>
	                            </a>
	                            <a href="#" class="widget-collapse-option" data-toggle="collapse">
	                                <i class="fa fa-chevron-up"></i>
	                            </a>
	                            <a href="#" class="widget-refresh-option">
	                                <i class="fa fa-refresh"></i>
	                            </a>
	                            <a href="#" class="widget-remove-option">
	                                <i class="fa fa-times"></i>
	                            </a>
	                        </span>
            </div>
            <div class="smart-widget-inner">
                <div class="smart-widget-hidden-section">
                    <ul class="widget-color-list clearfix">
                        <li style="background-color:#20232b;" data-color="widget-dark"></li>
                        <li style="background-color:#4c5f70;" data-color="widget-dark-blue"></li>
                        <li style="background-color:#23b7e5;" data-color="widget-blue"></li>
                        <li style="background-color:#2baab1;" data-color="widget-green"></li>
                        <li style="background-color:#edbc6c;" data-color="widget-yellow"></li>
                        <li style="background-color:#fbc852;" data-color="widget-orange"></li>
                        <li style="background-color:#e36159;" data-color="widget-red"></li>
                        <li style="background-color:#7266ba;" data-color="widget-purple"></li>
                        <li style="background-color:#f5f5f5;" data-color="widget-light-grey"></li>
                        <li style="background-color:#fff;" data-color="reset"></li>
                    </ul>
                </div>
                <div class="smart-widget-body">
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>网站id</th>
                            <th>网站名称</th>
                            <th>网站地址</th>
                            <th>创建人</th>
                            <th>创建时间</th>
                            <th>更新人</th>
                            <th>更新时间</th>
                            <th>顺序</th>
                            <th>标记</th>
                            <th>管理</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${page.list}" var="link">
                            <tr>
                                <td>${link.id}</td>
                                <td>${link.name}</td>
                                <td>${link.url}</td>
                                <td>${link.createBy.id}</td>
                                <td>${link.createDate}</td>
                                <td>${link.updateBy.id}</td>
                                <td>${link.updateDate}</td>
                                <td>${link.weight}</td>
                                <td>${link.delFlag}</td>
                                <td><a href="${stx}/link/update0?id=${link.id}"<%--&name="${link.name}"&url="${link.url}"&updateBy="${link.link.updateBy.id}"&weight="${link.weight}"&flag="${link.delFlag}"--%>
                                >修改</a>|<a href="${ctx}/link/delete?id=${link.id}" onclick="return del();">删除</a></td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                    <div>
                        <ul class="pagination pagination-lg">
                            <li> <%--上一页 hasPreviousPage布尔值是否有上一页，prePage上一页页面--%>
                                <c:if test="${page.hasPreviousPage}">
                                    <a href="${ctx}/link/show?pageNum=${page.prePage}&pageSize=${page.pageSize}">«</a>
                                </c:if></li>
                            <%--navigatepageNums 集合所有页码  --%>
                            <c:forEach items="${page.navigatepageNums}" var="nav">
                                <c:if test="${nav == page.pageNum}">
                                    <li style="font-weight: bold;"><a href="javascript:;">${nav}</a></li>
                                </c:if>
                                <c:if test="${nav != page.pageNum}">
                                    <li><a href="${ctx}/link/show?pageNum=${nav}&pageSize=${page.pageSize}">${nav}</a></li>
                                </c:if>
                            </c:forEach>


                            <%--hasNextPage 布尔值判断是否有下一页 nextPage下一页的页码--%>
                            <c:if test="${page.hasNextPage}">
                                <li><a href="${ctx}/link/show?pageNum=${page.nextPage}&pageSize=${page.pageSize}">»</a></li>
                            </c:if>
                        </ul>
                    </div>
                </div>
            </div><!-- ./smart-widget-inner -->
        </div><!-- ./smart-widget -->
    </div>
</div>
<%@include file="/WEB-INF/view/modules/sys/include/footerlib.jsp"%>
<script>
        function del(){
            if(confirm('确定要删除吗？')){
                return true;
            }
            return false;
        }
</script>
</body>
</html>





























